package com.gaokao.demo.service.impl;

import com.gaokao.demo.entity.SysRole;
import com.gaokao.demo.entity.SysUser;
import com.gaokao.demo.mapper.RoleMapper;
import com.gaokao.demo.service.IRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author szs
 * @since 2021-01-22
 */
@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, SysRole> implements IRoleService {

    @Autowired
    private RoleMapper roleMapper;

    @Override
    public Integer deleteRoles(SysUser sysUser) {
        return roleMapper.deleteRoles(sysUser);
    }

    @Override
    public Integer insertRoles(SysUser sysUser) {
        return roleMapper.insertRoles(sysUser);
    }
}
